package com.pubinfo.passbook.common.service.master;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.entity.TRuleRole;
import com.pubinfo.passbook.common.entity.TSystemRole;
import com.pubinfo.passbook.common.model.dto.rule.RuleRole;
import com.pubinfo.passbook.common.model.dto.rule.RuleRoleParam;
import com.pubinfo.passbook.common.model.http.eip.UserInfo;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

/**
 *
 */
public interface TRuleRoleService extends IService<TRuleRole> {
  boolean saveRuleRole(RuleRole role, UserInfo userInfo, TSystemRole systemRole);
  
  IPage<TRuleRole> selectRuleRole(RuleRoleParam param, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> deleteRuleRole(String id, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> updateRuleRole(RuleRole ruleRole, UserInfo userInfo, TSystemRole systemRole);
}
